package siyuan.run.feign.feignclient;

import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import siyuan.run.feign.config.FeignConfiguration;

/**
 * @program: sy
 * @description:
 * @author: Jacob
 * @create: 2020-11-24 22:42
 **/
@FeignClient(contextId = "feignClient",name = "service-provider",configuration = FeignConfiguration.class)
public interface MyFeignClient {

//    @RequestMapping(value = "/hello",method = RequestMethod.GET)
    @RequestLine("GET /hello")
    public String hello();

}
